<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/ukkepuk/source/php/classes/model/AbstractEntity.php'); 

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Drink
 *
 * @author virtual
 */
class Drink extends AbstractEntity {
    private $kidsId;
    private $drinkTypesId;
    private $amount;
    private $drinkFrom;
    private $drinkTo;
    
    
    public function getKidsId() {  return $this->kidsId;    }
    public function getDrinkTypesId() {  return $this->drinkTypesId;    }
    public function getAmount() {  return $this->amount;    }
    public function getDrinkFrom() {  return $this->drinkFrom;    }
    public function getDrinkTo() {  return $this->drinkTo;    }
   
    
    public function setKidsId($kidsId) { $this->kidsId = $kidsId; }
    public function setDrinkTypesId($drinkTypesId) { $this->drinkTypesId = $drinkTypesId; }
    public function setAmount($amount) { $this->amount = $amount; }
    public function setTimestamp($timestamp) { $this->timestamp = $timestamp; }
    public function setDrinkFrom($eatFrom) { $this->drinkFrom = $drinkFrom; }
    public function setDrinkTo($eatTo) { $this->drinkTo = $drinkTo; }    
    
     public function setTimeFrom($time) {
        $this->drinkFrom = CalendarUtils::createDateFromTime($time);
    }
    public function setTimeTo($time) {
        $this->drinkTo = CalendarUtils::createDateFromTime($time);
    }
  
    public function getTimeFrom() {
        return CalendarUtils::transformDateToTime($this->drinkFrom);
    }
    
    public function getTimeTo() {
        return CalendarUtils::transformDateToTime($this->drinkTo);
    }
    
    public function getDrinkFromTimestampString() {
        return CalendarUtils::transformDateToTimestamp($this->drinkFrom);
    }

    public function getDrinkToTimestampString(){
        return CalendarUtils::transformDateToTimestamp($this->drinkTo);
    }
    
     public function getBegin(){
        return $this->booleanToYesNo($this->drinkTo == null);
    }
      
    private $drinkTypeString;
    
    public function getDrinkTypeString() {
        return $this->drinkTypeString;
    }
    public function setDrinkTypeString($drinkTypeString) {
        $this->drinkTypeString = $drinkTypeString;
    }
    
}


?>
